package com.nanjia.boot.delivery.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nanjia.boot.delivery.model.entity.DeliveryAddress;
import com.nanjia.boot.delivery.model.query.DeliveryAddressQuery;
import com.nanjia.boot.delivery.model.vo.DeliveryAddressVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 收货/收票管理Mapper接口
 *
 * @author 周洋
 * @since 2025-07-03 10:49
 */
@Mapper
public interface DeliveryAddressMapper extends BaseMapper<DeliveryAddress> {

    /**
     * 获取收货/收票管理分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<DeliveryAddressVO>} 收货/收票管理分页列表
     */
    Page<DeliveryAddressVO> getDeliveryAddressPage(Page<DeliveryAddressVO> page, DeliveryAddressQuery queryParams);

    List<DeliveryAddressVO> getDeliveryAddresslist(@Param("queryParams") DeliveryAddressQuery queryParams);
}
